﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using XBoshiGFS.forms;

namespace XBoshiGFS
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            try
            {

                //System.Drawing.Printing.PrintDocument doc = new System.Drawing.Printing.PrintDocument();

                //int rawKind = 1; //记录标识自定义纸张的ID

                ////枚举出所有的打印纸尺寸 
                //foreach (System.Drawing.Printing.PaperSize paper in doc.PrinterSettings.PaperSizes)
                //{

                //    System.Diagnostics.Debug.WriteLine("纸张大小" + paper.ToString() + "   " + paper.RawKind);
                //} 


                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                MainMDIParent main = new MainMDIParent();
                //main.Show(); 
                Application.Run(main);
            }
            catch (ObjectDisposedException ex)
            {
                MessageBox.Show(ex.ToString());
            }
            catch (Exception ex1) {

                MessageBox.Show(ex1.ToString());
            }

        }
    }
}
